package com.weixing.mall.provider.api.service;


import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.provider.api.fallback.APPDefictiveBack;
import com.weixing.mall.provider.api.fallback.DepotFallBack;
import com.weixing.mall.provider.api.model.vo.dto.DepotRPcVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.ribbon.FeignRibbonClientAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value ="mall-provider-depot",configuration = FeignRibbonClientAutoConfiguration.class,fallback = APPDefictiveBack.class)
public interface APPDefictiveRPC {
    @GetMapping("api/appdefectivegetByc/save")
    //type为1代表瑕疵，2代表其他
    Result save(@RequestParam(value = "orderId",required = false) Long orderId,@RequestParam(value = "type",required = false) Integer type,@RequestParam(value = "uid",required = false) Long uid,@RequestParam(value = "remark",required = false) String remark);

}
